#pragma once
#include "CLComString.h"
#include "CLComLibrarys_global.h"
//CLCOMLIBRARYS_EXPORT

enum ERECORD_DATA_OPERATE_TYPE
{
	ERECORD_DATA_OPERATE_TYPE_SHOW = 0,
	ERECORD_DATA_OPERATE_TYPE_ADD,
	ERECORD_DATA_OPERATE_TYPE_MODIFY,
	ERECORD_DATA_OPERATE_TYPE_DELETE,
	ERECORD_DATA_OPERATE_TYPE_REPLACE,
};
enum ERECORD_DATATYPE
{
	ERECORD_DATATYPE_SHOW = 0,
};

class CLCOMLIBRARYS_EXPORT CRecordItem
{
public:
	CRecordItem();
	CRecordItem(const CRecordItem& other);
	CRecordItem& operator=(const CRecordItem& other);

	~CRecordItem();
public:
	void SetFileIndex(int nFIndex);
	void SetOpType(ERECORD_DATA_OPERATE_TYPE optype);
	void SetDataType(ERECORD_DATATYPE dtype);
    void SetOPID(CLComString id);
	void SetKey(int nKey);
public:
	int GetKey();
	int GetFileIndex();
	ERECORD_DATA_OPERATE_TYPE GetOpType();
	ERECORD_DATATYPE GetDataType();
    CLComString GetOPID();

private:
	int								_nFileIndex;
	ERECORD_DATA_OPERATE_TYPE		_eOPType;
	ERECORD_DATATYPE				_eDataType;
    CLComString						_OpID;
	int								_nKey;
};

